<ion-view view-title="商品详情"  hide-tabs="true" >
  <!-- 头部 -->
  <ion-header-bar align-title="center" class="bar-positive">
    <div class="buttons" >
       <button class=" button-go-back" ng-click="goback()"><i class="icon ion-chevron-left"></i></button> 
    </div>
    <h1 class="title">商品详情</h1>
  </ion-header-bar> 
  <ion-content id="goods" [scroll="true"] [overflow-scroll="true"]>
    <div class="img_box">
        <img ng-src="{{good_details.imageUrl}}" alt="商品大图">
    </div>
    <div style="padding:16px;border-top:1px solid #e0e0e0;">
      <p class="info">
        {{good_details.couponInfo.couponName}}
        <!-- 碧欧泉 绿活泉特惠颜值礼盒 -->
      </p>
      <h4 class="pay">
          {{good_details.payPoint | number:0}}<small>积分</small><span>+</span>{{good_details.payMoney}} <small>元</small>
          <small class="right" style="line-height:29px;">市场参考价：{{good_details.couponInfo.couponPrice}}元</small>
      </h4>
      <!-- <p class="market_pay">
          <span >市场参考价:</span>
          <span>599.00元</span>
      </p> -->
      <div class="describe">
          <span class="name">商品描述:</span>
          <p class="des_content" ng-bind-html="good_details.couponInfo.useArticles">

            <!-- 洁丽雅1条浴巾+2条毛巾 颜色随机 100%纯棉 浴巾：140cmx70cm 392g/条、毛巾：72cmx34cm 97g/条 颜色：红、绿、蓝、紫、棕 -->
          </p>
      </div>
      <div class="able">
            可购买的会员等级：
      </div>
      <div class="grade">
        {{good_details.levels}}
        <!-- {{good_details.levels | card}} -->
        <!-- 金卡、白金卡、钻石卡 -->
      </div>
      <p class="buy">
           <button ng-click="go_confirm()">我要兑换</button> 
      </p>
    </div>
    <!--登录模块-->
    <script id="templates/modal.html" type="text/ng-template">
      <ion-modal-view id="QR_page">
        <ion-header-bar class="bar bar-header padding">
            <h1 class="title">
            <button class="button button-clear button-primary" ng-click=" modal.hide()">关闭</button>
            {{m_title}}
            </h1>
        </ion-header-bar>
        <ion-content class="padding">
            <!-- 登录模块 -->
            <div id="login" ng-if="display_login">
              <div class="button-bar sub_header_list">
                  <a class="button button-clear" ng-click="changeModel(0)" ng-class="{true:'selected',false:'unselected'}[show_M == 0]">验证码登录</a>
                  <a class="button button-clear" ng-click="changeModel(1)" ng-class="{true:'selected',false:'unselected'}[show_M == 1]">密码登录</a>
              </div>
              <form action="" ng-if="pwd_login_2" ><!--常规登录-->
                  <p class="no_pwd">若忘记密码，请使用验证码登录</p>
                  <div class="login_list">
                    <input type="text" placeholder="输入手机号" ng-class="{'phone':true,'e_act':true}" ng-model="n_user_info.user_num" ng-focus="phone_test()">
                    <span class="notice">{{reg_notice_phone}}</span>
                  </div>
                  <div class="login_list" style="position:relative;">
                    <input id="pwd" type="password" placeholder="请输入密码" ng-class="{'phone':true,'e_act':true}" ng-model="n_user_info.user_pwd" ng-focus="verification_test()">
                    <span class="show" ng-click="show_pwd()">{{show_pwd_value}}</span>
                    <span class="notice" >{{reg_notice_pwd}}
                      <span class="remember_pwd" >
                         <!-- ng-checked="ischecked"  -->
                        <input type="checkbox" hidden  ng-model="ischecked" ng-checked="ischecked" id="mar"/>
                        <label ng-click="toggle_pwd()">记住密码</label>
                      </span>
                    </span>
                  </div>
                  <div class="login_list">
                    <button type="button" id = "login_btn_1" ng-class="{'login_btn_def':true,'login_btn_act':true}" ng-click = "login_pwd()">登 &nbsp; 录</button>
                    <span class="notice">{{pwd_login_res}}</span>
                  </div>
              </form>

              <form action="" ng-if="test_code_login_2"><!--快捷登录-->
                  <p class="no_pwd"></p>
                  <div class="login_list" style="position:relative;border-color:#A58648">
                       
                      <div class="item item-input item-select" style="width:65px;position:absolute;top:0px;left:0px;padding:0;height:30px;">
                        <!-- 86中国 82韩国  65新加坡 -->
                        <select style="max-width:100%;" id = 'fgood_DL_area'>
                          <option value = '86'>+86</option>
                          <option value = '82'>+82</option>
                          <option value = '65'>+65</option>
                        </select>
                      </div>

                      <input type="text" style="padding-left:74px;" placeholder="输入手机号" ng-class="{'phone':true,'e_act':true}" ng-model="user_info.user_num" ng-focus="phone_test()">
                    <span class="notice" >{{phone_tc}}</span>
                  </div>
                  <div class="login_list">
                    <input type="text"placeholder="输入验证码" ng-class="{'num':true,'e_act':true}"ng-model="user_info.test_code" ng-focus="verification_test()">
                    <a ng-click="get_test_code($event)" ng-bind="captcha.paracont" class="test_btn">发送验证码</a>
                    <span class="notice" >{{test_code_tc}}  </span>
                  </div>
                  <div class="login_list">
                    <button type="button" id = "login_btn" ng-class="{'login_btn_def':true,'login_btn_act':true}" ng-click = "LOGIN()">登 &nbsp; 录</button>
                  </div>
              </form>
              <p class="change">
                  还不是会员，<span style="color:#A58648;"ng-click="change_page(1)" >马上注册</span>
              </p>
            </div>
            <!-- 注册模块 -->
            <div id="register" ng-if="display_register">
               <form action="" style="margin-top:30px;">
                <div class="login_list" style="position:relative;border-color:#A58648">
                       
                      <div class="item item-input item-select" style="width:65px;position:absolute;top:0px;left:0px;padding:0;height:30px;">
                        <!-- 86中国 82韩国  65新加坡 -->
                        <select style="max-width:100%;" id = 'fgood_ZC_area'>
                          <option value = '86'>+86</option>
                          <option value = '82'>+82</option>
                          <option value = '65'>+65</option>
                        </select>
                      </div>

                      <input type="text" style="padding-left:74px;" placeholder="输入手机号" ng-class="{'phone':true,'e_act':is_phone}" ng-model="register_info.phone"  ng-focus = "hide_notice()">
                  <span class="notice">{{r_phone_num}}</span>
                </div>
                <div class="login_list" style="position:relative;">
                  <input id="pwd" type="password" placeholder="请输入密码" ng-class="{'phone':true,'e_act':is_phone}" ng-model="register_info.pwd" ng-focus = "hide_notice()">
                  <span class="show" ng-click="show_pwd()">{{show_pwd_value}}</span>
                  <span class="notice" >
                   {{r_pwd_num}}
                  </span>
                </div>
                <div class="login_list">
                  <input type="text"placeholder="输入验证码" ng-class="{'num':true,'e_act':true}"ng-model="register_info.code" ng-focus = "hide_notice()" >
                  <a ng-click="register_code($event)" ng-bind="captcha.paracont" class="test_btn">发送验证码</a>
                  <span class="notice" >{{r_pwd_login_res_code}} </span>
                </div>
                <div class="login_list">
                  <button type="button" id = "login_btn_1" ng-class="{'login_btn_def':true,'login_btn_act':true}" ng-click = "register()">注&nbsp;册</button>
                  <span class="notice" >
                    {{r_pwd_login_res}}
                  </span>
                </div>
              </form>
              <p class="change">
                  已是会员，<span style="color:#A58648;"ng-click="change_page(0)" >马上登录</span>
              </p>
            </div>
          </ion-content>
      </ion-modal-view>
    </script>
    <!--登录模块-->
  </ion-content>
</ion-view>